Skip to content

Keep overlay panels above reopened dialogs - #117

Merged
einari merged 1 commit into
mainfrom
fix/overlay-zindex-raise-only
Aug 9, 2026
Merged

Keep overlay panels above reopened dialogs#117
einari merged 1 commit into
mainfrom
fix/overlay-zindex-raise-only

Conversation

@einari

@einari einari commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Overlay panels remain usable when dialogs are reopened.

Fixed

…'s value

The hook overwrote the overlay panel's inline z-index with a hard-coded
constant. That value can sit below the current modal tier, and PrimeReact's
ZIndexUtils.clear() un-registers an overlay by reading its inline z-index
back — overwriting it made that lookup miss, leaked the registry entry, and
every dialog opened afterwards escalated its mask's z-index further above
the panels until dropdowns rendered behind the dialogs hosting them, from
the second dialog open onward. The hook now only raises a panel sitting
below the floor and leaves anything PrimeReact stacked at or above it
untouched, with the decision extracted pure and spec'd.
@einari einari added the patch label Aug 9, 2026
@einari
einari merged commit 94da3aa into main Aug 9, 2026
5 checks passed
@einari
einari deleted the fix/overlay-zindex-raise-only branch August 9, 2026 09:51
@woksin woksin changed the title Make useOverlayZIndex raise-only so overlay panels stop falling behind dialogs Keep overlay panels above reopened dialogs Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant